package pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Date;

public class DoctorWork {
    private String day;

    @JsonProperty("docId")
    private String docId;       // 对应数据库 doc_id

    private String amwork;
    private String pmwork;

    @JsonProperty("createTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;    // 对应数据库 create_time

    private String weekday;
    private Integer feeId;

    @JsonProperty("countLeft")
    private Integer countLeft;   // 可挂号数量

    @JsonProperty("orderedCount")
    private Integer orderedCount; // 已预约订单数量

    // 新增的关联属性
    @JsonProperty("docName")
    private String docName;           // 医生姓名

    @JsonProperty("department1Name")
    private String department1Name;   // 一级科室名称

    @JsonProperty("department2Name")
    private String department2Name;   // 二级科室名称

    // 原有的 Getters and Setters
    public String getDay() { return day; }
    public void setDay(String day) { this.day = day; }

    public String getDocId() { return docId; }
    public void setDocId(String docId) { this.docId = docId; }

    public String getAmwork() { return amwork; }
    public void setAmwork(String amwork) { this.amwork = amwork; }

    public String getPmwork() { return pmwork; }
    public void setPmwork(String pmwork) { this.pmwork = pmwork; }

    public Date getCreateTime() { return createTime; }
    public void setCreateTime(Date createTime) { this.createTime = createTime; }

    public String getWeekday() { return weekday; }
    public void setWeekday(String weekday) { this.weekday = weekday; }

    public Integer getFeeId() { return feeId; }
    public void setFeeId(Integer feeId) { this.feeId = feeId; }

    public Integer getCountLeft() { return countLeft; }
    public void setCountLeft(Integer countLeft) { this.countLeft = countLeft; }

    public Integer getOrderedCount() { return orderedCount; }
    public void setOrderedCount(Integer orderedCount) { this.orderedCount = orderedCount; }

    // 新增属性的 Getters and Setters
    public String getDocName() { return docName; }
    public void setDocName(String docName) { this.docName = docName; }

    public String getDepartment1Name() { return department1Name; }
    public void setDepartment1Name(String department1Name) { this.department1Name = department1Name; }

    public String getDepartment2Name() { return department2Name; }
    public void setDepartment2Name(String department2Name) { this.department2Name = department2Name; }
}